import java.util.Scanner;

//在同一个类中定义多个方法：要求不仅可以求2个整数的最大值，还可以求3个小数的最大值？
public class Max2 {
    public static int FoundMax(int a, int b) {
        if (a > b) {
            return a;
        } else {
          return b;
        }
    }
    public static double FoundMax1(double c,double d, double e){
        if(c > d) {
            if(c > e){
                return c;
            }else{
                return e;
            }
        }
        else {
            if(d > e){
                return d;
            }else {
                return e;
            }
        }
}
    public static void main(String[] args) {
//        Scanner sc = new Scanner(System.in);
//        int a = sc.nextInt();
//        int b = sc.nextInt();
//        double c = sc.nextDouble();
//        double d = sc.nextDouble();
//        double e = sc.nextDouble();
//        int m = FoundMax(a, b);
//        double n =FoundMax1(c, d, e);
//        System.out.println(m);
//        System.out.println(n);
        int k = FoundMax(5,6);
        System.out.println(k);
        double p = FoundMax1(1.05,2.69,3.0);
        System.out.println(p);
        }
    }

